package com.xusheng.cli.req;

import com.xusheng.cli.common.constant.Regular;
import com.xusheng.cli.common.validation.Save;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author lyh
 * @since 2023-04-27 15:47
 */
@Data
@ToString
public class UpdatePasswordReq {

    @NotNull(message = "请输入密码")
//    @Pattern(regexp = Regular.PASSWORD, message = Regular.PASSWORD_MASSAGE)
    private String password;
    private String originPassword;
    /**
     * 账号
     */
    @NotNull(message = "请输入账号", groups = Save.class)
    @Pattern(regexp = Regular.MOBILE, message = Regular.MOBILE_MASSAGE, groups = Save.class)
    private String account;
    /**
     * 短信验证码
     */
    private String smsCode;
    /**
     * 忘记密码
     */
    private Boolean forgetPassword;
}
